// eslint.config.mjs
import eslint from '@eslint/js';
import tseslint from '@typescript-eslint/eslint-plugin';

export default [
  // 直接导出一个数组
  eslint.configs.recommended,
  tseslint.configs.recommended,
  {
    files: ['**/*.js'],
    rules: {
      semi: 'error',
      'prefer-const': 'error'
    }
  },
  {
    ignores: ['**/*.css', '**/*.scss', 'dist/', 'node_modules/']
  }
];
